<?php
/**
 * Created by PhpStorm.
 * User: 24369
 * Date: 2021/6/26
 * Time: 14:40
 */
namespace app\admin\validate;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule=[
        'name'=>'require',
        'password'=>'require',
        'code'=>'require|captcha'
    ];
    protected $scene=[
        'isCode'=>['name','password','code'],
        'noCode'=>['name','password']
    ];
}